#!/system/bin/sh

chmod 777 /sys/devices/platform/led_ctrl/gpio_led
# 实际开发中把上面去掉，因为需要root 权限， 在init进程去设置 
while true
do
	echo "gpio pull up, green led !"
	echo 1 > /sys/devices/platform/led_ctrl/gpio_led

	sleep 1

	echo "gpio pull down, red led !"
	echo 0 > /sys/devices/platform/led_ctrl/gpio_led

	sleep 1

done
